const path = require("path");
const resolve = (name) => {
  return path.resolve(__dirname, "../", name);
};
const getPackageJson = (name) => {
  return require(resolve(`packages/${name}/package.json`));
};
module.exports = {
  //packages目录
  packagesDir: resolve("packages"),
  resolve,
  getPackageJson,
};
